package com.venus.mapper;

import com.venus.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * role角色表 Mapper 接口
 * </p>
 *
 * @author Venus
 * @since 2020-06-08
 */
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 通过id获取角色
     * @param uid
     * @return
     */
    List<Role> getRolesByUid(Integer uid);
}
